programming4us
           
 
 
Windows

Turning Windows 7 into a Web Server : Accessing Your Website

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
3/19/2011 9:29:46 AM
Although there’s not much to see, the default website is ready for action as soon as you install IIS. To access the website from the computer running IIS, you can enter any of the following addresses into your web browser:
http://127.0.0.1/
http://localhost/
http://IPAddress/ (replace IPAddress with the IP address of the computer)
http://ComputerName/ (replace ComputerName with name of the computer)

Figure 28.2 shows the home page of the default IIS website that appears.

Figure 1. The default IIS 7.5 website home page.

Creating a Windows Firewall Exception for the Web Server

As things stand now, your new website will only work properly when you access it using a web browser running on the Windows 7 PC that’s running IIS. If you try to access the site on any other computer (or from a location outside your network), you get an error message, as shown in Figure 2.

Figure 2. Other computers on your network can’t access your web server.

The problem is that the Windows Firewall on the Windows 7 machine hasn’t been configured to allow data traffic through the World Wide Web Services used by IIS. For your website to work from any remote location, you need to set up an exception for the World Wide Web Services in Windows Firewall. Here are the steps to follow:

1.
Select Start, type firewall, and then click Allow a Program through Windows Firewall in the search results. The Allowed Programs window appears.

2.
Click Change Settings to enable the window controls.

3.
Click to activate the check box beside the World Wide Web Services (HTTP) item, as shown in Figure 3.

Figure 3. You need to configure Windows Firewall on the Windows 7 machine running IIS to allow traffic over the World Wide Web Services.

Note

HTTP is short for Hypertext Transport Protocol, the protocol used to exchange information on the World Wide Web.

4.
Click OK to put the exception into effect.

Accessing Your Website over the Network

With the Windows Firewall exception for the World Wide Web Services in place, you can now access the website from any remote computer on your network. You do this by launching your web browser and entering one of the following addresses:

http://IPAddress/ (replace IPAddress with the IP address of the IIS computer)
http://ComputerName/ (replace ComputerName with name of the IIS computer)


For example, Figure 4 shows Internet Explorer accessing the same IP address as shown earlier in Figure 2, but now instead of an error the user sees the default IIS site.

Figure 4. With the firewall exception in place, other computers on your network can now access your Web server.

Accessing Your Website over the Internet

People on your network can now access your website, but you may also want to allow website access to people from outside your network (that is, from the Internet). To set this up, you must do three things:

1.
Set up the Windows 7 machine that’s hosting the website with a permanent IP address.

2.
Configure your router to forward TCP traffic on port 80 to the IP address you specified in step 1.

3.
(Optional) If you want people to access your website using a domain name, you need to sign up for and configure a dynamic domain name system (DDNS) service.

An Internet user can now access your website by entering the following addresses into a web browser:

http://IPAddress/ (replace IPAddress with your router's external IP address)
http://DomainName/ (replace DomainName with your Dynamic DNS domain name)

I set up a DDNS service to map the domain paulmcfedries.com to my local network, and then configured my router to forward web traffic to my Windows 7 machine running IIS. As you can see in Figure 5, entering the address http://www.paulmcfedries.com/ brings up the default IIS website.
Figure 5. With dynamic DNS and port forwarding in place, Internet users can access your Windows 7 web server using your domain name.

Note

No, I don’t currently run my own website, although I did for many years. Chances are if you try http://www.paulmcfedries.com/, you won’t get very far.

Other -----------------
- Windows 7 : Installing Internet Information Services
- Windows 7 : Using Virtual Private Network Connections
- Windows 7 : Using Dynamic DNS to Access Your Network & Configuring a Network Computer for Remote Administration
- Windows 7 : Connecting to a Remote Desktop via the Internet
- Windows 7 : Connecting to the Remote Desktop (part 2) - Making an Advanced Connection
- Windows 7 : Connecting to the Remote Desktop (part 1) - Making a Basic Connection
- Windows 7 : Setting Up the Remote Computer as a Host (part 2) - Configuring XP to Act as a Remote Desktop Host
- Windows 7 : Setting Up the Remote Computer as a Host (part 1) - Configuring Windows 7 or Vista to Act as a Remote Desktop Host
- Windows 7 : Working with Network Files Offline (part 6) - Dealing with Synchronization Conflicts
- Windows 7 : Working with Network Files Offline (part 5) - Synchronizing Your Offline Files
- Windows 7 : Working with Network Files Offline (part 4) - Working with Network Files While You’re Offline
- SOA with .NET and Windows Azure : WCF Discovery (part 3) - Discovery Proxies for Managed Discovery & Implicit Service Discovery
- SOA with .NET and Windows Azure : WCF Discovery (part 2) - Locating a Service Ad Hoc & Sending and Receiving Service Announcements
- SOA with .NET and Windows Azure : WCF Discovery (part 1) - Discovery Modes
- Windows 7 : Working with Network Files Offline (part 3) - Prohibiting a Network Folder from Being Made Available Offline & Encrypting Offline Files
- Windows 7 : Working with Network Files Offline (part 2) - Changing the Amount of Disk Space Used by Offline Files
- Windows 7 : Working with Network Files Offline (part 1) - Activating the Offline Files Feature & Making a File or Folder Available for Offline Use
- Windows 7 : Sharing Resources with the Network (part 2) - Monitoring Your Shared Resources
- Windows 7 : Sharing Resources with the Network (part 1) - Setting Sharing Options & Creating User Accounts for Sharing
- Windows 7 : Accessing a Shared Printer
 
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
- First look: Apple Watch

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
programming4us programming4us